<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        li{
            list-style: none;
        }
    </style>
</head>
<body>
<div class="container"></div>
</body>
<script src="./javescript/G.js"></script>
<script>
     var arr ="好看的标签,好看的标签,好看的标签,好看的标签,好看的标签,好看的标签".split(",");
     var html = '<ul>' + G.map( arr, function ( v, i ) {
                 return '<li>' + v + '</li>';
             }).join( '' ) + '</ul>';
     console.log(html);
     new G( '.container' )[ 0 ].innerHTML = html;
     // 鼠标移动事件
     new G( '.container li' ).each( function ( v, i ) {
         v.onmouseover = function () {
             this.style.backgroundColor = 'yellow';
         };
     }).each(function () {
         this.onmouseout = function () {
             this.style.backgroundColor = '';
         };
     });
</script>
</html>